package com.zyw;

import com.zyw.configuration.DataSourceConfiguration;
import com.zyw.configuration.MyBatisConfiguration;
import com.zyw.configuration.ShiroWebConfiguration;
import com.zyw.configuration.SpringConfiguration;
import org.springframework.boot.Banner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.freemarker.FreeMarkerAutoConfiguration;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.context.annotation.Import;

@SpringBootApplication(
        scanBasePackages = {"com.zyw.*"},
        exclude = {
                DataSourceAutoConfiguration.class,
                FreeMarkerAutoConfiguration.class
        }
)
@Import({
//        ShiroStatelessConfiguration.class,
        ShiroWebConfiguration.class,
        DataSourceConfiguration.class,
        MyBatisConfiguration.class,
        SpringConfiguration.class
})
public class SkyBoot {

    public static void main(String[] args) {
        SpringApplication app = new SpringApplication(SkyBoot.class);
        app.setBannerMode(Banner.Mode.OFF);
        app.run(args);
    }
}
